package cn.secby.wms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.secby.wms.mapper.LogisticsCompanyMapper;
import cn.secby.wms.domain.LogisticsCompany;
import cn.secby.wms.service.ILogisticsCompanyService;

/**
 * 物流公司Service业务层处理
 * 
 * @author hushuo
 * @date 2024-11-12
 */
@Service
public class LogisticsCompanyServiceImpl implements ILogisticsCompanyService 
{
    @Autowired
    private LogisticsCompanyMapper logisticsCompanyMapper;

    /**
     * 查询物流公司
     * 
     * @param id 物流公司主键
     * @return 物流公司
     */
    @Override
    public LogisticsCompany selectLogisticsCompanyById(Long id)
    {
        return logisticsCompanyMapper.selectLogisticsCompanyById(id);
    }

    /**
     * 查询物流公司列表
     * 
     * @param logisticsCompany 物流公司
     * @return 物流公司
     */
    @Override
    public List<LogisticsCompany> selectLogisticsCompanyList(LogisticsCompany logisticsCompany)
    {
        return logisticsCompanyMapper.selectLogisticsCompanyList(logisticsCompany);
    }

    /**
     * 新增物流公司
     * 
     * @param logisticsCompany 物流公司
     * @return 结果
     */
    @Override
    public int insertLogisticsCompany(LogisticsCompany logisticsCompany)
    {
        return logisticsCompanyMapper.insertLogisticsCompany(logisticsCompany);
    }

    /**
     * 修改物流公司
     * 
     * @param logisticsCompany 物流公司
     * @return 结果
     */
    @Override
    public int updateLogisticsCompany(LogisticsCompany logisticsCompany)
    {
        return logisticsCompanyMapper.updateLogisticsCompany(logisticsCompany);
    }

    /**
     * 批量删除物流公司
     * 
     * @param ids 需要删除的物流公司主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsCompanyByIds(Long[] ids)
    {
        return logisticsCompanyMapper.deleteLogisticsCompanyByIds(ids);
    }

    /**
     * 删除物流公司信息
     * 
     * @param id 物流公司主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsCompanyById(Long id)
    {
        return logisticsCompanyMapper.deleteLogisticsCompanyById(id);
    }
}
